// 导入axios实例
import service from '../utils/http'

// 库存相关API接口
export const inventoryinApi = {
  // 获取库存列表
  getInventoryinList: (params) => service.get('/warehousing/getInventoryinList', { params }),
  // 获取供应商列表
  getSupplierList: (params) => service.get('/supplier', { params }),
  // 获取订单详情
  getGoodsOrderDetail: (params) => service.get('/warehousing/GetGoodsOrderDetail', { params }),
  // 获取采购订单详情
  GetInventoryinDetail: (params) => service.get('/warehousing/GetInventoryinDetail', { params }),
  // 新增库存
  AddInventoryin: (params) => service.post('/warehousing/AddInventoryin', params),
  // 获取用户列表
  getUserList: (params) => service.get('/users', { params }),
  // 获取用户姓名
  GetUserName: (params) => service.get('/warehousing/GetUserName', { params }),
}

export default inventoryinApi